home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / epp / docs / pmodules / cskipnonwhite.doc < prev    next >
Text File  |  1980-01-05  |  1KB  |  18 lines

  1. MODULE cSkipNonWhite.e
  2.  
  3.   /*----------------------------------------------------------------------*/
  4.   /* pos must point into a null-terminated string!                        */
  5.   /* pos must be passed by value!                                         */
  6.   /* pos must not point beyond the end of the string when it's passed in! */
  7.   /*                                                                      */
  8.   /* Skips SPACE, TAB, LF, CR.  Returns end pos so that the following     */
  9.   /* statement sequence can be used in the calling program:               */
  10.   /*   length := (cSkipNonWhite (startPos) - startPos)                    */
  11.   /*   MidStr (someString, startPos, 0, length)                           */
  12.   /*                                                                      */
  13.   /* If you use the string with index method in your main program, you    */
  14.   /* can get the PTR TO CHAR pos by using:                                */
  15.   /*   length := (cSkipNonWhite (string + index) - (string + index))      */
  16.   /*   MidStr (someString, string, index, length)                         */
  17.   /*----------------------------------------------------------------------*/
  18.